home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3503 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  815 b 

  1. Path: crl.crl.com!not-for-mail
  2. From: bobfry@crl.com (Robert Fry)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: free
  5. Date: 29 Jan 1996 08:31:20 -0800
  6. Organization: CRL Dialup Internet Access
  7. Message-ID: <4eisoo$f7h@crl.crl.com>
  8. References: <4e908i$3vq@news.utdallas.edu> <822702110snz@genesis.demon.co.uk>
  9. NNTP-Posting-Host: crl.com
  10.  
  11. Lawrence Kirby <fred@genesis.demon.co.uk> writes:
  12.  
  13. >C doesn't provide any method of determining the size of a heap allocated
  14. >object - you simply have to note the size somewhere when you allocate it.
  15.  
  16. I would add to this the fact that many memory management packages offer 
  17. some sort of method for getting this information. It's certainly not a 
  18. part of the C language, but this is sometimes very useful for debugging 
  19. purposes. Just be warned it's non-portable and library-specific.
  20.  
  21.   Bob
  22.